﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI.WebControls;

/// <summary>
///StringFormField 的摘要说明
/// </summary>
public class StringFormField:BaseFormShow
{
    public override IEnumerable<System.Web.UI.Control> GetFieldContrls(System.Reflection.PropertyInfo propertyInfo,object value)
    {
        TextBox field = new TextBox();
        field.ID = propertyInfo.Name;

        if (value != null)
        {
            field.Text = value.ToString();
        }

        yield return field;
    }


    public override object GetValue(System.Reflection.PropertyInfo propertyInfo, string value)
    {
        return value;
    }
}
